package com.dragon.app.commons.vo;

import java.io.Serializable;

public class JsonResult<T>  implements Serializable{
	private static final long serialVersionUID = 1L;
	/**
	 */
	private Integer errorCode=0;
	/**
	 */
	private String message;
	private T data;
	
	public Integer getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(Integer errorCode) {
		this.errorCode = errorCode;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	public void setErrorMsg(String msg){
		this.errorCode=-1;
		this.message=msg;
	}
	public void setErrorMsg(Integer code,String msg){
		this.errorCode=code;
		this.message=msg;
	}
}
